package com.tiandang.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tiandang.core.error.BusinessException;
import tiandang.core.model.ManagerApply;
import tiandang.core.response.CommonReturnType;
import tiandang.core.service.ManagerApplyService;

@RestController
@RequestMapping("/wechat/managerApply")
public class MangerApplyController {

  @Autowired
  private ManagerApplyService managerApplyService;

  @PostMapping("/create")
  public CommonReturnType create(ManagerApply managerApply) throws BusinessException {
    managerApplyService.save(managerApply);
    return CommonReturnType.success();
  }
}
